package com.stylefeng.guns.modular.system.service.impl;

import com.stylefeng.guns.modular.system.model.Jarset;
import com.stylefeng.guns.modular.system.dao.JarsetMapper;
import com.stylefeng.guns.modular.system.service.IJarsetService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * jar包控量 服务实现类
 * </p>
 *
 * @author kutty
 * @since 2018-10-22
 */
@Service
public class JarsetServiceImpl extends ServiceImpl<JarsetMapper, Jarset> implements IJarsetService {

    @Resource
    JarsetMapper jarsetMapper;

    @Override
    public List<Jarset> showInfoByChannelAndJarName(@Param("channel")String channel, @Param("jarName")String jarName){
        return jarsetMapper.showInfoByChannelAndJarName(channel,jarName);
    }

    @Override
    public void updIsUse(@Param("channel")String channel,@Param("jarName")String jarName){
        jarsetMapper.updIsUse(channel,jarName);
    }

    @Override
    public void addJarSetDate() {
        jarsetMapper.addJarSetDate();
    }

    @Override
    public List<Jarset> showInfoByChannel(@Param("channel")String channel){
        List<Jarset> jarset = jarsetMapper.showInfoByChannel(channel);
        return jarset;
    }

}
